﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000509 RID: 1289
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExpUpRelicScRsp : IMessage<ExpUpRelicScRsp>, IMessage, IEquatable<ExpUpRelicScRsp>, IDeepCloneable<ExpUpRelicScRsp>, IBufferMessage
	{
		// Token: 0x170010AC RID: 4268
		// (get) Token: 0x06003A51 RID: 14929 RVA: 0x000A02AD File Offset: 0x0009E4AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExpUpRelicScRsp> Parser
		{
			get
			{
				return ExpUpRelicScRsp._parser;
			}
		}

		// Token: 0x170010AD RID: 4269
		// (get) Token: 0x06003A52 RID: 14930 RVA: 0x000A02B4 File Offset: 0x0009E4B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExpUpRelicScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170010AE RID: 4270
		// (get) Token: 0x06003A53 RID: 14931 RVA: 0x000A02C6 File Offset: 0x0009E4C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExpUpRelicScRsp.Descriptor;
			}
		}

		// Token: 0x06003A54 RID: 14932 RVA: 0x000A02CD File Offset: 0x0009E4CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpRelicScRsp()
		{
		}

		// Token: 0x06003A55 RID: 14933 RVA: 0x000A02E0 File Offset: 0x0009E4E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpRelicScRsp(ExpUpRelicScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.returnItemList_ = other.returnItemList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003A56 RID: 14934 RVA: 0x000A0316 File Offset: 0x0009E516
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpRelicScRsp Clone()
		{
			return new ExpUpRelicScRsp(this);
		}

		// Token: 0x170010AF RID: 4271
		// (get) Token: 0x06003A57 RID: 14935 RVA: 0x000A031E File Offset: 0x0009E51E
		// (set) Token: 0x06003A58 RID: 14936 RVA: 0x000A0326 File Offset: 0x0009E526
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170010B0 RID: 4272
		// (get) Token: 0x06003A59 RID: 14937 RVA: 0x000A032F File Offset: 0x0009E52F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PileItem> ReturnItemList
		{
			get
			{
				return this.returnItemList_;
			}
		}

		// Token: 0x06003A5A RID: 14938 RVA: 0x000A0337 File Offset: 0x0009E537
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExpUpRelicScRsp);
		}

		// Token: 0x06003A5B RID: 14939 RVA: 0x000A0348 File Offset: 0x0009E548
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExpUpRelicScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.returnItemList_.Equals(other.returnItemList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003A5C RID: 14940 RVA: 0x000A0398 File Offset: 0x0009E598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.returnItemList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003A5D RID: 14941 RVA: 0x000A03E5 File Offset: 0x0009E5E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003A5E RID: 14942 RVA: 0x000A03ED File Offset: 0x0009E5ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003A5F RID: 14943 RVA: 0x000A03F8 File Offset: 0x0009E5F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.returnItemList_.WriteTo(ref output, ExpUpRelicScRsp._repeated_returnItemList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003A60 RID: 14944 RVA: 0x000A0448 File Offset: 0x0009E648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.returnItemList_.CalculateSize(ExpUpRelicScRsp._repeated_returnItemList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003A61 RID: 14945 RVA: 0x000A049C File Offset: 0x0009E69C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExpUpRelicScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.returnItemList_.Add(other.returnItemList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003A62 RID: 14946 RVA: 0x000A04E9 File Offset: 0x0009E6E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003A63 RID: 14947 RVA: 0x000A04F4 File Offset: 0x0009E6F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.returnItemList_.AddEntriesFrom(ref input, ExpUpRelicScRsp._repeated_returnItemList_codec);
				}
			}
		}

		// Token: 0x040016DE RID: 5854
		private static readonly MessageParser<ExpUpRelicScRsp> _parser = new MessageParser<ExpUpRelicScRsp>(() => new ExpUpRelicScRsp());

		// Token: 0x040016DF RID: 5855
		private UnknownFieldSet _unknownFields;

		// Token: 0x040016E0 RID: 5856
		public const int RetcodeFieldNumber = 7;

		// Token: 0x040016E1 RID: 5857
		private uint retcode_;

		// Token: 0x040016E2 RID: 5858
		public const int ReturnItemListFieldNumber = 1;

		// Token: 0x040016E3 RID: 5859
		private static readonly FieldCodec<PileItem> _repeated_returnItemList_codec = FieldCodec.ForMessage<PileItem>(10U, PileItem.Parser);

		// Token: 0x040016E4 RID: 5860
		private readonly RepeatedField<PileItem> returnItemList_ = new RepeatedField<PileItem>();
	}
}
